/* This is the replication .do-file for the paper "The Power of Mandatory Quality Disclosure: Evidence from the German Housing Market*/
/* Manuel Frondel, Andreas Gerster, Colin Vance */

** Header
macro drop _all
clear
clear mata
clear matrix
set matsize 10000
set maxvar 32767
set more off, permanently

** Define globals (adjust to your paths)
global PATH "C:/Users/agerster/Dropbox/Projekt_Gebaeudeausweis/Auswertung JAERE_final"

global WORKDATA "${PATH}/workdata/"
global FINALDATA "${PATH}/data"
global DOFILES "${PATH}"
global LOG "${PATH}/log"
global GRAPHS "${PATH}/graphs"

global DATE = "`=year(date("$S_DATE", "DMY"))'" + "_" + "`=month(date("$S_DATE", "DMY"))'" + "_" + "`=day(date("$S_DATE", "DMY"))'" 
global LOGTIME 1 // log results? 1 = yes


** Run .do files
do "$DOFILES/1_1_descriptives.do" 
do "$DOFILES/1_2_graphs.do" 
do "$DOFILES/2_1_analysis.do" 
do "$DOFILES/2_2_analysis_transactprice.do"  
do "$DOFILES/3_1_panel_matching.do" 
do "$DOFILES/3_2_panel_graphs.do" 
do "$DOFILES/3_3_panel_analysis.do" 


